﻿using PSE.Framework.Communication.Configuration.Adapters;
using System;
using System.Configuration;


namespace PSE.Framework.Communication.Configuration.Adapters
{
    /// <summary>
    /// Coleção de actions de adapters de entrada
    /// </summary>
    [ConfigurationCollection(typeof(OutputAdapterActionConfiguration), AddItemName = "action",
CollectionType = ConfigurationElementCollectionType.BasicMap)]
    public class OutputAdapterActionConfigurationCollection : AdapterActionConfigurationCollection
    {
        public new OutputAdapterActionConfiguration this[int index]
        {
            get
            {
                return base[index] as OutputAdapterActionConfiguration;
            }
            set
            {
                base[index] = value;
            }
        }

        public new OutputAdapterActionConfiguration this[string key]
        {
            get
            {
                return base[key] as OutputAdapterActionConfiguration;
            }
            set
            {
                base[key] = value;
            }
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new OutputAdapterActionConfiguration();
        }
    }//end InputAdapterActionConfigurationCollection

}